<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <title>测试列表</title>
    <script type="text/javascript" src="/static/public.js"></script>
</head>
<body>
<div>
    <!-- 表格数据 -->
    <table id="userListId" title="可编辑用户表格" class="easyui-datagrid"
           url="/w/wh001/testList1_1" toolbar="#toolbarId" pagination="true"
           rownumbers="true" fitColumns="true" striped="true">
        <thead>
        <tr>
            <th data-options="field:'id',checkbox:true" width="50"></th>
            <th width="50" data-options="field:'name'">名称</th>
            <th width="50" data-options="field:'num'">编号</th>
            <th width="50" data-options="field:'phone'">手机号</th>
            <th width="50" data-options="field:'address'">地址</th>
            <th width="50" data-options="field:'icon'">头像</th>
            <th width="50" data-options="field:'flag'">标记</th>
            <th width="50" data-options="field:'sex'">性别</th>
            <th width="50" data-options="field:'age'">年龄</th>
            <th width="50" data-options="field:'parent_name'">家长姓名</th>
        </tr>
        </thead>
    </table>
    <!-- 工具条 -->
    <div id="toolbarId" style="padding: 5px; height: auto">
        <div style="margin-bottom: 5px">
            <a href="javascript:void(0)" id="addUserId"
               class="easyui-linkbutton" onclick="openUserDialog()"
               iconCls="icon-add" plain="true">添加</a>
        </div>
    </div>
    <h2>shiro标签</h2>
    <shiro:hasPermission name="sys:user:edit">
        admin有[sys:user:edit]权限标识
        </shiro:hasPermission><br/>
        <shiro:hasPermission name="sys:user:dele">
            admin有[sys:user:dele]权限标识
        </shiro:hasPermission>
        <br/>
        <shiro:hasPermission name="sys:user:view">
            admin有[sys:user:view]权限标识
        </shiro:hasPermission>
        <br/>
        <a href="${ctx }/w/layout">退出</a>
</div>

</body>
</html>
